package cn.xs.core.util;

import org.apache.commons.dbutils.QueryRunner;

import com.mchange.v2.c3p0.ComboPooledDataSource;

/**
 * JDBC的工具类
 * @author 小松
 *
 */
public class JDBCUtils {

	private static ComboPooledDataSource dataSource;
	static{
		dataSource = new ComboPooledDataSource();
	}
	
	/**
	 * 返回queryRunner的实例类
	 * @return
	 */
	public static QueryRunner getQueryRunner(){
		return new QueryRunner(dataSource);
	}
}
